package thread.lock;

/**
 * @program: Multhread
 * @description:
 * @author: zhanghz001
 * @create: 2021-03-04 21:26
 **/
public class SonLock extends ParentLock {
    
    public static void main(String[] args) {
        SonLock lock = new SonLock();
        lock.f1();
    }
    
    public void f1() {
        synchronized (super.lock) {
            super.f1();
            System.out.println("f1 from son");
        }
    }
}
